package com.jade.store.wechat.entity;

import com.jade.bss.db.IdEntity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 微信菜单
 * User: JinYa 2009_jinya@163.com
 * Date: 2016-4-25
 * Time: 15:01
 * Version : 1.0
 * Remark:
 * History:
 */
@Entity
@Table(name = "STORE_WX_MENU")
public class WechatMenu extends IdEntity {
    private int isDefault;//是否是默认菜单
    private String type;//菜单的响应动作类型
    private String name;//菜单标题，不超过16个字节，子菜单不超过40个字节
    private String viewkey;//click等点击类型必须	菜单KEY值，用于消息接口推送，不超过128字节
    private String url;//view类型必须	网页链接，用户点击菜单可打开链接，不超过256字节
    private String media_id;//media_id类型和view_limited类型必须	调用新增永久素材接口返回的合法media_id
    private long parentId=0l;
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getViewkey() {
        return viewkey;
    }

    public void setViewkey(String viewkey) {
        this.viewkey = viewkey;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getMedia_id() {
        return media_id;
    }

    public void setMedia_id(String media_id) {
        this.media_id = media_id;
    }

    public long getParentId() {
        return parentId;
    }

    public void setParentId(long parentId) {
        this.parentId = parentId;
    }
}
